/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.tbp.persitence.dao;

import br.com.tbp.exception.PersistenciaException;
import br.com.tbp.model.domain.Empresa;
import java.util.List;

/**
 *
 * @author Diego Freire
 */
public interface EmpresaDao {

    public void adicionar(Empresa e) throws PersistenciaException;
    public void atualizar(Empresa e) throws PersistenciaException;
    public void remover(Empresa e) throws PersistenciaException;
    public List<Empresa> pesquisar() throws PersistenciaException;
    public List<Empresa> pesquisar(int limit1, int limit2) throws PersistenciaException;
    public List<Empresa> pesquisarPorNomeFantasia(String str) throws PersistenciaException;
    public List<Empresa> pesquisarPorRazaoSocial(String str) throws PersistenciaException;
    public List<Empresa> pesquisarPorCnpj(String str) throws PersistenciaException;
    public Empresa pesquisarPorId(long id) throws PersistenciaException;
    public long verificarDuplicidade(String cnpj) throws PersistenciaException;

}
